home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / alib / amigalib / createstdio.c < prev    next >
C/C++ Source or Header  |  1994-02-18  |  707b  |  40 lines

  1.  
  2. /*
  3.  *  CreateStdIO.C   (1.3/2.0) (for 2.0 only apps use CreateIORequest())
  4.  */
  5.  
  6. #include <exec/types.h>
  7. #include <exec/ports.h>
  8. #include <exec/memory.h>
  9. #include <exec/io.h>
  10. #ifdef INCLUDE_VERSION        /*    2.0 */
  11. #include <clib/exec_protos.h>
  12. #include <clib/alib_protos.h>
  13. #else
  14. extern void *CreateExtIO(void *, long);
  15. extern void DeleteExtIO(void *);
  16. #endif
  17.  
  18. typedef struct MsgPort    MsgPort;
  19. typedef struct IORequest IORequest;
  20. typedef struct IOStdReq  IOStdReq;
  21.  
  22. #ifndef HYPER
  23. #define HYPER
  24. #endif
  25.  
  26. IOStdReq *
  27. HYPER ## CreateStdIO(replyPort)
  28. MsgPort *replyPort;
  29. {
  30.     return((IOStdReq *)CreateExtIO(replyPort, sizeof(IOStdReq)));
  31. }
  32.  
  33. void
  34. DeleteStdIO(io)
  35. IOStdReq *io;
  36. {
  37.     DeleteExtIO((IORequest *)io);
  38. }
  39.  
  40.